/**
 * 
 */
package las.dao.entity;

import java.util.Date;

/**
 * @author shayne
 * 
 */
public class UserAchievement {
	private Integer id;
	private Integer userId;
	private Integer achId;
	private User user;
	private Achievement achievement;
	
	private Integer isComplete;
	private Date recordTime;
	private Date completeTime;

	
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		if(user == null){
			this.userId = null;
		}else{
			this.userId = user.getUserId();
		}
		this.user = user;
	}

	public Achievement getAchievement() {
		return achievement;
	}

	public void setAchievement(Achievement achievement) {
		if(achievement == null){
			this.achId = null;
		}else{
			this.achId = achievement.getAchId();
		}
		this.achievement = achievement;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getAchId() {
		return achId;
	}

	public void setAchId(Integer achId) {
		this.achId = achId;
	}

	public Integer getIsComplete() {
		return isComplete;
	}

	public void setIsComplete(Integer isComplete) {
		this.isComplete = isComplete;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public Date getCompleteTime() {
		return completeTime;
	}

	public void setCompleteTime(Date completeTime) {
		this.completeTime = completeTime;
	}

}
